import request from "@/config/request";

export const getSimulationServer = (param) => {
  return request({
    url: "/simulation_test",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getSimulationTextResult = (param) => {
  return request({
    url: "/simulation_test_result",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getPymooEval = (param) => {
  return request({
    url: "/pymoo_eval",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};
